package jaux.tank.bean.vo;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jaux.tank.dao.enums.EntityQueryParamType;
import lombok.Data;

@ApiModel("实体查询条件")
@Data
public class EntityQueryCondition {

	@ApiModelProperty("查询属性")
	private String property;
	
	@ApiModelProperty("查询类型")
	private EntityQueryParamType queryType;
	
	@ApiModelProperty(value = "可选查询条件列表")
	private List<EntityQueryCondition> conditions;
	
	@ApiModelProperty("查询值")
	private Object value;
	
	
	public EntityQueryCondition() {
	}
	
	public EntityQueryCondition(String property, Object value) {
		super();
		this.property = property;
		this.queryType = EntityQueryParamType.EQUAL;
		this.value = value;
	}
	public EntityQueryCondition(String property, EntityQueryParamType queryType) {
		super();
		this.property = property;
		this.queryType = queryType;
	}
	public EntityQueryCondition(String property, EntityQueryParamType queryType, Object value) {
		super();
		this.property = property;
		this.queryType = queryType;
		this.value = value;
	}

	
}
